% exercise 01 for the image processing 1 class

%% exercise 1a

imgFilename = 'image1.png'


%loading the image
img = my_loadImage(imgFilename);

%showing the image
my_showImage(img);

%% exercise 1b

%splitting the RGB channels of the color image
[imgR, imgG, imgB] = my_RGBSplit(img);

%plotting the image and each RGB channel
my_plotRGBSplit(img, imgR, imgG, imgB);


%% exercise 1c

%gamma correct the image
imgGC = my_gammaCorrection(img);

my_showImage(imgGC);

%% exercise 1d

%convert the RGB image to grayscale image
imgGray = my_RGB2Gray(img);

my_showImage(imgGray);




